// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import "styles/reset.css"; // 保证样式在所有浏览器上显示一致
import "styles/border.css"; // 解决移动端1px边框问题
import fastClick from "fastclick"; // 解决300ms点击延迟问题
import "styles/iconfont.css";
import VueAwesomeSwiper from "vue-awesome-swiper"; // 轮播图
import "swiper/dist/css/swiper.css";
import store from "./store";
import "babel-polyfill";
import {
  Tabbar,
  TabbarItem,
  Card,
  Tag,
  Button,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  NavBar,
  Skeleton,
  Form,
  Field,
  Lazyload,
  Image as VanImage,
  Cell,
  CellGroup,
  Divider,
  Grid,
  GridItem
} from "vant"; // 引入Vant的组件
import Ftabbar from "./pages/footer/Ftabbar.vue";

Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Divider);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(VanImage);
Vue.use(Lazyload);
Vue.use(Form);
Vue.use(Field);
Vue.use(Skeleton);
Vue.use(NavBar);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Button);
Vue.use(Tag);
Vue.use(Card);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.config.productionTip = false;
fastClick.attach(document.body);
Vue.use(VueAwesomeSwiper);
Vue.component("Ftabbar", Ftabbar);

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
